<template>
	<div class="group-item" @click.stop="clickGroup">
    {{item.name}} <i class="V7_iconfont" :class="!isFold ? 'V7_iconV7tubiao_shang' : 'V7_iconV7tubiao_xiaa'"></i>
	</div>
</template>

<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator';
import widgetCommon from '../common/widgetCommon';
@Component({
  name: 'group'
})
export default class extends Mixins(widgetCommon) {
  private isFold = false
  private clickGroup () {
    this.isFold = !this.isFold
    this.$emit('clickGroup', this.item)
  }
}
</script>

<style lang="stylus" scoped>
.group-item {
  cursor: pointer;
  line-height: 32px;
  border-bottom: 1px solid rgba(83,168,255,0.1);
  color: #409eff;
  background-color: rgba(83,168,255,0.1);
  padding-left: 5px;
  padding-right: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-left: 8px
  width: 100%
  .V7_iconfont {
    font-size: 14px;
  }
}
</style>
